using B.S.XZYData.Api.Read.Dto.Product;
using B.S.XZYData.ErrorCode;
using MediatR;

namespace B.S.XZYData.Api.Read.Application.Command.Product
{
    /// <summary>
    /// 获取产品分页列表命令
    /// </summary>
    public class GetProductPageCommand : IRequest<ApiPageing<ProductDto>>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int Index { get; set; } = 1;

        /// <summary>
        /// 页大小
        /// </summary>
        public int Size { get; set; } = 20;

        /// <summary>
        /// 产品编号（模糊查询）
        /// </summary>
        public string? Code { get; set; }

        /// <summary>
        /// 产品名称（模糊查询）
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 规格（模糊查询）
        /// </summary>
        public string? Spec { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 生产人员
        /// </summary>
        public string? Producer { get; set; }
    }
} 